#ifndef SMS_H
#define SMS_H

#include <tencentcloud/core/TencentCloud.h>
#include <tencentcloud/core/profile/HttpProfile.h>
#include <tencentcloud/core/profile/ClientProfile.h>
#include <tencentcloud/core/Credential.h>
#include <tencentcloud/core/NetworkProxy.h>
#include <tencentcloud/core/AsyncCallerContext.h>
#include <tencentcloud/sms/v20210111/SmsClient.h>
#include <tencentcloud/sms/v20210111/model/SendSmsRequest.h>
#include <tencentcloud/sms/v20210111/model/SendSmsResponse.h>

#include <iostream>
#include <string>
#include <QObject>

using namespace TencentCloud;
using namespace TencentCloud::Sms::V20210111;
using namespace TencentCloud::Sms::V20210111::Model;
using namespace std;

class sms : public QObject
{
    Q_OBJECT
public:
    sms();//create func
    ~sms();
    ClientProfile clientProfile;
    SendSmsRequest req;

    bool send();

private:
    string secretId;
    string secretKey;
    string signName;
    string TemplateId;
    Credential cred = Credential(secretId, secretKey);
};

#endif // SMS_H
